Name | Result |
---|---|
-c[lock] n | A basic-block-counting option. This option lists the number of seconds spent in each routine, based on the CPU clock frequency n, expressed in megahertz. |
-d[is] | Disassembles and annotates the analyzed object code with cycle times or number of pc samples. |
-dso [dso_name] | Applies prof analysis to only the named DSO. If you don't specify dso_name, prof prints a list of applicable DSO names. |
-e[xclude] procedure_name | Excludes information on the procedures specified by procedure_name. If you specify uppercase -E, prof also omits that procedure from the base upon which it calculates percentages. |
-feedback | Produces a file with information that the compiler system can use to decide how to arrange procedures in the binary. The default is to use -procedures in positioning procedures in the binary. This option has to be used with -pixie. If -gprof is also specified, procedures are ordered using call graph counts, rather than invocation counts. The feedback file is named a.out.fb or lib*so*.fb. See Table 2-2 and "Rearranging Procedures With cord." |
-gprof | A basic block counting option to be used with prof. Calculates cycles and propagates basic block counting to a procedure's callers proportionately. For more information, see "Inclusive Basic Block Counting." |
-h[eavy] | A basic-block-counting option. Same as the -lines option, but sorts the lines by their frequency of use. |
-i[nvocations] | A basic-block-counting option. Lists the number of times each procedure is invoked. The -exclude and -only options described below apply to callees, but not to callers. |
-l[ines] | Lists statistics for each line of source code. |
-m[erge] filename | Merges the input files into filename (the default is mon.out), allowing you to specify the name of the merged file (instead of several filenames) on subsequent profiler runs. This option is useful when using multiple input files of profile data. |
-o[nly] procedure_name | Reports information on only the procedure specified by procedure_name rather than the entire program. You can specify more than one -o option. If you specify uppercase -O, prof uses only the named procedures, rather than the entire program, as the base upon which it calculates percentages. |
-pcsample | Tells prof that the data to be analyzed is from pc sampling. This is the default. This option and -pixie are mutually exclusive. |
-pixie | A basic-block-counting option. Indicates that information is to be generated on basic block counting, and that the prog_name.Counts files produced by pixie are to be used by default. This option and -pcsample are mutually exclusive. |
-p[rocedures] | Lists the time spent in each procedure. |
-q[uit] n | Condenses output listings by truncating unwanted lines. You can specify n in three ways: n, an integer, truncates everything after n lines; n%, an integer followed by a percent sign, truncates everything after the line containing n% calls in the %calls column; ncum%, an integer, followed by cum%, truncates everything after the line containing ncum% calls in the cum% column. |
-t[estcoverage] | A basic-block-counting option. Lists line numbers that contain code that is never executed. |
-z[ero] | A basic-block-counting option. Lists the procedures that are never invoked. |